package pactera.tf.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import pactera.tf.dataobj.ChatMsgDO;
import pactera.tf.mapper.ChatMsgMapper;
import pactera.tf.service.ChatMsgService;

import java.util.List;

@Service
public class ChatMsgServiceImpl implements  ChatMsgService{
    @Autowired
    ChatMsgMapper chatMsgMapper;
    @Async
    @Override
    public void insertChatMsg(ChatMsgDO chatMsg){
        chatMsgMapper.insertChatMsg(chatMsg);
    }

    @Override
    public List<ChatMsgDO> lookTwoUserMsg(ChatMsgDO chatMsg){
        return chatMsgMapper.lookTwoUserMsg(chatMsg);
    }
}
